package week9.Q1;

public class Bird extends Animal{
    private  String color;




    public Bird(String color,int age){
        super(age);
        this.color=color;

    }

    public void setColor(String color){
        this.color=color;
    }

    public String getColor(){
        return  color;
    }


    public  void showInfo(){
        super.showInfo();
        System.out.println("我是一只"+getColor()+"的鸟!"+"我今年"+getAge()+"了!");

    }

}
